Routines For Setting Up Windows

Some devices are basically window orientated - like sunview and X11. You can give VOGL some information about the window that it will use with these routines. These can make your code very device dependent. Both routines take arguments which are in device space. (0, 0) is the bottom left hand corner in device space. To have any effect these routines must be called before ginit or winopen. For the X11 device, an entry may be made in your .Xdefaults file of the form vogl.Geometry = 150x500 + 550 + 50 (where you specify your geometry as you please).

void prefposition
(long x1, long y1, long x2, long y2)
Specify the preferred position of the window opened by the next winopen.

void prefsize
(long width,long height)
Specify the preferred width and height of the window opened by the *next* winopen.

void reshapeviewport
()
This is occasionally used in Iris GL if a REDRAW event rolls up. While VOGL is unlikely to ever provide a REDRAW event the call is provided for compatibility.